if ( window.adminui == undefined ) {


    window.adminui = {};

    $(document).ready(function() {

        $( '#competitionsPage' ).live( 'pageinit',function(event){

            boot.ready(function(bootinfo) {

                var competitions = new Message();
                competitions.restLoad(boot.bootinfo.restLink("competitions"), function(data) {

                    $("#new_competition").click(function() {

                    });
                });
            })
        });

        $( '#competitionsPage' ).live( 'pageshow',function(event){

            boot.ready(function(bootinfo) {

                var competitions = new Message();
                competitions.restLoad(boot.bootinfo.restLink("competitions"), function(data) {

                    logging.log("got me data ", data)
                });
            })
        });
    });

}